﻿using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;
using Calendar.Models.Objects;

namespace JBSE.Models.FluentConfiguration
{
    public class MasterCodeConfiguration : EntityTypeConfiguration<MasterCode>
    {
        public MasterCodeConfiguration()
        {
            Property(t => t.Id)
             .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            Property(d => d.CodeType).HasMaxLength(5);
            Property(d => d.Name).HasMaxLength(50);
            
        }
    }


}